define([
		"jquery",
		'ueditor/ueditor.all.min',
		"ueditor/ueditor.config"
	],
	function($) {
		var _editor_id = 0;
		return {
			init: function(objList) {
				var ret = [];
				$.each(objList, function(i, o) {
					var obj = $(o);
					++_editor_id;
					var tempId = "_editor_" + _editor_id;
					if (obj.is("[id]")) {
						tempId = obj.attr("id");
					} else {
						obj.attr("id", tempId);
					}
					var ue = UE.getEditor(tempId, {
						autoHeightEnabled: true,
						autoFloatEnabled: true
					});
					ret.push(ue);
				});
				return ret.length==1?ret[0]:ret;
			}
		}
	}
);